package com.hsh.erp.controller;

import com.hsh.erp.domain.common.Result;
import com.hsh.erp.domain.dto.InOutTypeDTO;
import com.hsh.erp.domain.vo.InOutTypeVO;
import com.hsh.erp.enums.InOutTypeEnum;
import com.hsh.erp.service.InOutTypeService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author USER
 * @description 针对表【in_out_bound_type】的数据库操作Service实现
 * @createDate 2024-05-30 16:21:43
 */
@RestController
@RequestMapping("/inOutType")
@Tag(name = "出入库类型", description = "出入库类型")
public class InOutTypeController  {

    @Resource
    private InOutTypeService inOutTypeService;


    /**
     * 获得出入库类型，null-所有 0-入库类型 1-出库类型
     *
     * @param inOutTypeVO
     * @return
     */
    @GetMapping("/all")
    @Operation(summary = "获得出入库类型，null-所有 0-入库类型 1-出库类型")
    public Result getAll(InOutTypeVO inOutTypeVO) {
        return inOutTypeService.getAll(inOutTypeVO);
    }


}




